package com.quanyan.comment.model.vo;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/6/2.
 */
public class SystemVo implements Serializable {

    private Integer id;

    private String code;

    private String name;

    private String remark;

    private Integer status;
    /**
     * 分页参数
     */
    private Integer pageNum ;

    /**
     * 每页的大小
     */
    private Integer pageSize;



    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageNum() {
        if(this.pageNum == null)
            this.pageNum = 1;

        if(this.pageNum <= 0) {
            this.pageNum = 1;
        }
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        if(this.pageSize == null)
            this.pageSize = 10 ;

        return pageSize;
    }


    public SystemVo() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "SystemVo{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", remark='" + remark + '\'' +
                ", status=" + status +
                '}';
    }
}
